package com.syun.entry;

import com.syun.spring.ioc.core.annotation.Autowired;
import com.syun.spring.ioc.core.annotation.Component;
import com.syun.spring.ioc.core.annotation.Value;

@Component
public class B {

    @Value(value = "b-1")
    private String b1;
    @Value(value = "b-2")
    private String b2;
    @Value(value = "b-3")
    private String b3;

//    @Autowired
    private A a;

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    public String getB3() {
        return b3;
    }

    public void setB3(String b3) {
        this.b3 = b3;
    }

    @Override
    public String toString() {
        return "B{" +
                "b1='" + b1 + '\'' +
                ", b2='" + b2 + '\'' +
                ", b3='" + b3 + '\'' +
                '}';
    }
}
